package edu.msg.hrappy.backend.model;



import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public class BaseEntity extends AbstractModel implements Serializable {
    
    private static final long serialVersionUID = 1L;
    private Long              id;
    
    public BaseEntity () {
        this (null);
    }
    
    public BaseEntity (final Long id) {
        super ();
        getUuid ();
        this.id = id;
    }
    
    public void setId (final Long id) {
        this.id = id;
    }
    @Id
    @GeneratedValue (strategy = GenerationType.IDENTITY)
    @Column (name = "id", nullable = false)
    public Long getId () {
        return id;
    }
    
}

